home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
GRAPH_FO
/
(GRAPH
/
CGRAPHTE
/
CGRAPHTA.H
< prev
next >
Wrap
Text File
|
1991-02-15
|
1KB
|
44 lines
/******************************************************************************
CGraphTask.h
Interface for the GraphTask Class, a general class that handles
scrolling in the Graph and sets some instance variables for
tracking, etc. Later extend to hanle Undo.
Copyright ⌐ 1990 Maarten Meijer. All rights reserved.
******************************************************************************/
#define _H_CGraphTask
/* includes */
#include <CMouseTask.h> /* Interface for its superclass */
#include <CPanorama.h>
#include "Graph.h"
/* class definition */
struct CGraphTask : CMouseTask {
/** Instance Variables **/
CPanorama * itsRama;
Graph * itsGraph;
Point itsStart, itsStop;
Boolean notified; /* Notified its supervisor */
/** Instance Methods **/
/** Contruction/Destruction **/
void IGraphTask(short aNameIndex, CPanorama *theRama,
Graph *theGraph, Point from);
void Notify();
/** Mouse Tracking **/
void BeginTracking(Point *startPt);
void KeepTracking(Point *currPt, Point *prevPt, Point *startPt);
void EndTracking(Point *currPt, Point *prevPt, Point *startPt);
/** Drawing the thing **/
void Draw(Point a, Point b);
/** get some data **/
void GetStop(Point *pt);
void GetRect(Rect *result);
};